<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>windowopen</title>
</head>
<body>
    <input type="button" value="退 出" id="quit">
    <script>
        //window.open(pageURL,name,parameters)打开一个新的浏览器窗口或查找一个已命名的窗口
        window.onload = function(){
            // 打开子窗口，显示newwindow.html
            window.open("window对象.html","width=400,height=200,left=0,top=0,toolbar=no,menubar=no,scrollbars=no,location=no,status=no");
            var quit = document.getElementById("quit");
            // 点击关闭当前窗口
            quit.onclick = function(){
                window.close();
            }
        }
    </script>


</body>
</html>